
<extend  name="./Application/Admin/View/layout.html" />
<block name="mid">
     <div id="page-wrapper">
            <div id="page-inner">
                <div class="row">

                    <div class="col-md-12">
                        <h1 class="page-head-line">Data Table </h1>
                        <h1 class="page-subhead-line">This is dummy text , you can replace it with your original text. </h1>

                    </div>
                </div>
                <!-- /. ROW  -->


<a class="btn btn-success" type="button" href="{:U('Admin/goods/add')}">商品添加</a>
                <!-- /. ROW  -->
            <div class="row">
                <div class="col-md-12">
                     <!--    Hover Rows  -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          广告位列表
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-hover">

                                    <thead>
                                        <tr>
                                            <th>id</th>
                                            <th>商品名称</th>
                                            <th>商品编号</th>
                                            <th>图片</th>
                                            <th>市场价</th>
                                            <th>本店价格</th>
                                            <th>品牌</th>
                                            <th>分类</th>
                                            <th>上架</th>
                                            <th>热销</th>
                                            <th>新品</th>
                                            <th>创建时间</th>
                                            <th>操作</th>
                                       </tr>
                                    </thead>
                                    <tbody>
                                      <foreach name="list" item="v" >
                                      <tr>
                                            <td>{$v.id}</td>
                                            <td>{$v.goods_name}</td>
                                            <td>{$v.goods_no}</td>
                                            <td><img width="8%" height="8%" src="__ROOT__/{$v.img}"></td>
                                            <td>{$v.marke_price}</td>
                                            <td>{$v.shop_price}</td>
                                            <td>{$v.cate.name}</td>
                                            <td>{$v.brand.name}</td>
                                             <td>{$v['is_down']==1?'是':'否'}</td>
                                              <td>{$v['is_hot']==1?'是':'否'}</td>
                                              <td>{$v['is_new']==1?'是':'否'}</td>
                                            <td>{$v.create_time}</td>
                                             <td><a class="btn btn-success" type="button" href="{:U('Admin/goods/goods_img/id/'.$v['id'])}">商品相册添加</a></td>

                                        </tr>
                                      </foreach>



                                    </tbody>
                                </table>
                               <!--  <div class="pagination">
                                  <li class="disabled"><a href="#">«</a></li>
                                  <li class="active"><a href="#">1 <span class="sr-only">(current)</span></a></li>
                                  <li><a href="#">2</a></li>
                                  <li><a href="#">3</a></li>
                                  <li><a href="#">4</a></li>
                                  <li><a href="#">5</a></li>
                                  <li><a href="#">»</a></li> -->


                              <!--   </div> -->
{$page}
                            </div>
                        </div>
                    </div>
                    <!-- End  Hover Rows  -->
                </div>

            </div>
                <!-- /. ROW  -->

            </div>
            <!-- /. PAGE INNER  -->
        </div>
        </block>
